
	
/****** Object:  Stored Procedure [dbo].tblFileUploadInsert    Script Date: Thursday, October 27, 2011 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sptblFileUploadInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sptblFileUploadInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: [dbo].sptblFileUploadInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 27/10/2011 17:41:36
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].sptblFileUploadInsert
	@FileName varchar(128),
	@UploadDate datetime,
	@UploadBy varchar(7),
	@Path varchar(128),
	@FileType int,
	@Status int,
	@ID uniqueidentifier output
AS

SET @ID = NEWID()

INSERT INTO [dbo].[tblFileUpload] 
(
	[ID],
	[FileName],
	[UploadDate],
	[UploadBy],
	[Path],
	[FileType],
	[Status]
) 
VALUES 
(
	@ID,
	@FileName,
	@UploadDate,
	@UploadBy,
	@Path,
	@FileType,
	@Status
)

GO
	
